using System;
using System.Data;
using System.Configuration;
using System.Web;
using System.Web.Security;
using System.Web.UI;
using System.Web.UI.WebControls;
using System.Web.UI.WebControls.WebParts;
using System.Web.UI.HtmlControls;
using System.Text;
using System.IO;

/// <summary>
/// AKS 1.0 - HiSoftware Inc.
/// CA DESIGN
/// Robert B. Yonaitis 
/// </summary>


namespace AKSAdapters
{
    public class AKS_SiteAggregator_Adapter : System.Web.UI.Adapters.ControlAdapter
    {
        public AKS_SiteAggregator_Adapter()
        {

        }

        protected override void Render(HtmlTextWriter output)
        {
            StringBuilder sb = new StringBuilder();
            HtmlTextWriter writer = new HtmlTextWriter(new StringWriter(sb));
            base.Render(writer);
            sb.Replace("(this, 0, 325);}\" src = '/_layouts/images/blank.gif' ></IFrame>","(this, 0, 325);}\" src = '/_layouts/images/blank.gif' >The Site Aggregator requires IFRAME support, please ask your System Administrator for help.</IFrame>");
            sb.Replace("<input name=\"ctl00$ctl26$g_873f387b_56ff_4f7c_ab28_618967863c96$ctl07\"", "<label for=\"SiteURL\">Enter URL </label><input id=\"SiteURL\" name=\"ctl00$ctl26$g_873f387b_56ff_4f7c_ab28_618967863c96$ctl07\"");
            sb.Replace("<input name=\"ctl00$ctl26$g_873f387b_56ff_4f7c_ab28_618967863c96$ctl11\"", "<label for=\"ctl00_ctl26_g_873f387b_56ff_4f7c_ab28_618967863c96_ctl11\">Enter Name </label><input name=\"ctl00$ctl26$g_873f387b_56ff_4f7c_ab28_618967863c96$ctl11\"");


            output.Write(sb.ToString());
        }
    }
}